﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Inspinia_MVC5.Models
{
    /// <summary>
    /// 电子书表
    /// </summary>
    public class Ebook
    {
        public int Id { get; set; }

        [StringLength(50)]
        [Display(Name = "书名")]
        [Required]


        public string EbookName { get; set; }

        [StringLength(50)]
        [Display(Name = "ISBN码")]
        [Required]


        public string EbookISBN { get; set; }

        [StringLength(100)]
        [Display(Name = "图片路径")]

        public string EbookPic { get; set; }

        [StringLength(50)]
        [Display(Name = "作者")]
        [Required]


        public string EbookAuthor { get; set; }

        [StringLength(50)]
        [Display(Name = "出版社")]
        [Required]


        public string EbookPress { get; set; }

        [StringLength(100)]
        [Display(Name = "存储路径")]
        [Required]


        public string EbookPath { get; set; }

        [StringLength(50)]
        [Display(Name = "状态")]

        public string Status { get; set; }
        [StringLength(1000)]
        [Display(Name = "详情")]

        public string Desc { get; set; }
        [Display(Name = "图书类别")]


        public int? BookTypeId { get; set; }
        [Display(Name = "阅读量")]

        public int? YueDuLiang { get; set; }

        public virtual BookType BookType { get; set; }
    }
}